home *** CD-ROM | disk | FTP | other *** search
Wrap
Set MyShell = CreateObject("Wscript.Shell") Set MyFiles = CreateObject("Scripting.FileSystemObject") Set umgebung=MyShell.Environment("PROCESS") On Error Resume Next windir=umgebung("windir") userprofile=umgebung("userprofile") NT = MyShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName") Programs = MyShell.RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProgramFilesDir") dllcache = MyShell.RegRead("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SFCDllCacheDir") If not NT = "" Then ret = MsgBox("Pro ·plnΘ odstran∞nφ Outlook Expressu si musφte zajistit p°φstup ke Konzole pro zotavenφ. " &_ "P°ipravte si instalaΦnφ CD Windows a v Φlßnku v Φasopise si p°eΦt∞te, jak mßte postupovat a jak spustφte Konzolu pro zotavenφ pozd∞ji. " & vbcr &_ "Mß se nynφ pokraΦovat?", vbYesNo+vbInformation, "Odstranit Outlook Express") If Ret = vbNo Then wscript.quit Else ret = MsgBox("Mß se nynφ odstranit Outlook Express?", vbYesNo+vbInformation, "Odstranit Outlook Express") If Ret = vbNo Then wscript.quit End if If dllcache = "" Then dllcache = windir & "\System32\dllcache" End If If Right(dllcache, 1) = "\" Then dllcache = Mid(dllcache, 1, Len(dllcache)-1) Set Killer = MyFiles.OpenTextFile(windir & "\pcwKoe.BAT", 2, True) If not NT="" Then Killer.Writeline "Set AllowAllPaths = True" End If If (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\msoe.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\msoe.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\msoeres.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\msoeres.dll" & chr(34) End If If (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\msimn.exe")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\msimn.exe" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\oeimport.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\oeimport.dll" & chr(34) End If If (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\oemig50.exe")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\oemig50.exe" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\oemiglib.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\oemiglib.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\setup50.exe")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\setup50.exe" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wab32.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wab32.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wab32res.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wab32res.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wab.exe")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wab.exe" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wabfind.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wabfind.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wabimp.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wabimp.dll" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\wabmig.exe")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\wabmig.exe" & chr(34) End If if (myfiles.FileExists(windir & "\SERVICEPACKFILES\I386\directdb.dll")) Then Killer.Writeline "del " & chr(34) & windir & "\SERVICEPACKFILES\I386\directdb.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\msoe.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\msoe.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\msoeres.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\msoeres.dll" & chr(34) End If If (myfiles.FileExists(dllcache & "\msimn.exe")) Then Killer.Writeline "del " & chr(34) & dllcache & "\msimn.exe" & chr(34) End If if (myfiles.FileExists(dllcache & "\oeimport.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\oeimport.dll" & chr(34) End If If (myfiles.FileExists(dllcache & "\oemig50.exe")) Then Killer.Writeline "del " & chr(34) & dllcache & "\oemig50.exe" & chr(34) End If if (myfiles.FileExists(dllcache & "\oemiglib.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\oemiglib.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\setup50.exe")) Then Killer.Writeline "del " & chr(34) & dllcache & "\setup50.exe" & chr(34) End If if (myfiles.FileExists(dllcache & "\wab32.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wab32.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\wab32res.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wab32res.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\wab.exe")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wab.exe" & chr(34) End If if (myfiles.FileExists(dllcache & "\wabfind.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wabfind.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\wabimp.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wabimp.dll" & chr(34) End If if (myfiles.FileExists(dllcache & "\wabmig.exe")) Then Killer.Writeline "del " & chr(34) & dllcache & "\wabmig.exe" & chr(34) End If if (myfiles.FileExists(dllcache & "\directdb.dll")) Then Killer.Writeline "del " & chr(34) & dllcache & "\directdb.dll" & chr(34) End If If (myfiles.FileExists(userprofile & "\Data aplikacφ\Microsoft\Internet Explorer\Quick Launch\Spustit Outlook Express.LNK")) Then Killer.Writeline "del " & chr(34) & userprofile & "\Data aplikacφ\Microsoft\Internet Explorer\Quick Launch\Outlook Express starten.LNK" & chr(34) End If if (myfiles.FileExists(windir & "\Data aplikacφ\Microsoft\Internet Explorer\Quick Launch\Spustit Outlook Express.LNK")) Then loesch = Myfiles.Deletefile(windir & "\Data aplikacφ\Microsoft\Internet Explorer\Quick Launch\Spustit Outlook Express.LNK", TRUE) End If If (myfiles.FileExists(userprofile & "\Nabφdka Start\Programy\Outlook Express.LNK")) Then Killer.Writeline "del " & chr(34) & userprofile & "\Nabφdka Start\Programy\Outlook Express.LNK" & chr(34) End If if (myfiles.FileExists(userprofile & "\Plocha\Outlook Express.LNK")) Then Killer.Writeline "del " & chr(34) & userprofile & "\Plocha\Outlook Express.LNK" & chr(34) End If if (myfiles.FileExists(windir & "\Nabφdka Start\Programy\Outlook Express.LNK")) Then loesch = Myfiles.Deletefile(windir & "\Nabφdka Start\Programy\Outlook Express.LNK", TRUE) End If If (myfiles.FileExists(windir & "\Plocha\Outlook Express.LNK")) Then loesch = Myfiles.Deletefile(windir & "\Plocha\Outlook Express.LNK", TRUE) End If hardfolder = Programs & "\Outlook Express" Set festverz = myfiles.GetFolder(hardfolder) Set ffiles = festverz.Files For Each file in ffiles If NT = "" Then ords = festverz.ShortPath Killer.Writeline "del " & chr(34) & ords & "\" & file.Shortname & Chr(34) Else Killer.Writeline "del " & chr(34) & festverz & "\" & file.name & Chr(34) End if Next If (myfiles.FolderExists(programs & "\Outlook Express")) Then If NT="" Then Killer.Writeline "rd " & chr(34) & ords & chr(34) Else Killer.Writeline "rd " & chr(34) & programs & "\Outlook Express" & chr(34) End If End If Killer.Close Set Killer = MyFiles.OpenTextFile(windir & "\pcwKoe.BAT", 1, False) Do While Not Killer.AtEndOfStream Zeile = Killer.ReadLine Nummer = Killer.Line-1 Loop Killer.close loesch = Myfiles.Deletefolder(Programs & "\Common Files\Microsoft Shared\Stationery", True) If not NT="" Then loesch = Myfiles.Deletefolder(userprofile & "\Data aplikacφ\Identities", True) loesch = Myfiles.Deletefolder(userprofile & "\Mφstnφ nastavenφ\Data aplikacφ\Identities", True) loesch = Myfiles.Deletefolder(userprofile & "\Data aplikacφ\Microsoft\Address Book", True) loesch = Myfiles.Deletefolder(userprofile & "\Mφstnφ nastavenφ\Data aplikacφ\Microsoft\Address Book", True) Else loesch = Myfiles.Deletefolder(windir & "\Data aplikacφ\Identities", True) loesch = Myfiles.Deletefolder(windir & "\Data aplikacφ\Microsoft\Address Book", True) End If Set RegKill = MyFiles.OpenTextFile(windir & "\pcwRk.REG", 2, True) RegKill.Writeline "REGEDIT4" RegKill.Writeline "" RegKill.Writeline "[-HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_LOCAL_MACHINE\Software\Microsoft\WAB]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_CURRENT_USER\Identities]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_CURRENT_USER\Software\Microsoft\Outlook Express]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_CURRENT_USER\Software\Microsoft\WAB]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_LOCAL_MACHINE \Software\Microsoft\Active Setup\Installed Components\{44BBA840-CC51-11CF-AAFA-00AA00B6015C}]" RegKill.Writeline "" RegKill.Writeline "[-HKEY_LOCAL_MACHINE \Software\Microsoft\Active Setup\Installed Components\{7790769C-0471-11D2-AF11-00C04FA35D02}]" RegKill.Writeline "" RegKill.Close Einlesen=MyShell.Run("regedit.exe /s " & windir & "\pcwRk.REG", 0, True) loesch = Myfiles.Deletefile(windir & "\pcwRk.REG", True) If NT = "" Then Wo = "v re₧imu MS-DOS" Else MyShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Setup\RecoveryConsole\SetCommand", 1, "REG_DWORD" Wo = "v Konzole pro zotavenφ" End If Ende = MsgBox("Restartujte poΦφtaΦ " & Wo & " a spus¥te dßvkov² soubor " & windir & "\pcwKoe.BAT, kter² odstranφ zbylΘ " & Nummer & " soubory Outlook Expressu.", 64, "Skript PC WORLDu pro odstran∞nφ Outlook Expressu: Hotovo")